DescribeTags
Description
query tags that you can use. You can query tags based on the resource type, resource ID, tag key, or tag value. The filter conditions are in a logical AND (& amp;& amp;) relationship, and the tags that meet all the filter conditions are returned.
Request Method
POST
Request Path
/apsara/route/Ecs/DescribeTags
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Tag.N.value | BODY | string | No | Finance | the tag value of the resource. description to improve compatibility, it is recommended that you try to use the Tag.N.Value parameter. |
Tag.N.key | BODY | string | No | Finance | the tag key of the resource. Description To improve compatibility, we recommend that you use the Tag.N.Key parameter as much as possible. |
Tag.N.Key | BODY | string | No | Finance | the tag key of the resource. The value range of n is 1~20. Once the value is passed in, an empty string is not allowed. it can be up to 64 characters in length. it cannot start with aliyun or acs: and cannot contain http:// or https://. |
PageSize | BODY | integer | No | 50 | the number of rows per page set during paging query. maximum value: 100 default value: 50 |
PageNumber | BODY | integer | No | 1 | page number of the label list. starting value: 1 default value: 1 |
ResourceId | BODY | string | No | s-946ntx4wr | resource ID bound by the tag. For example, when the resource type (ResourceType) is an instance (instance), the resource ID can be understood as the instance ID. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
Tag.N.Value | BODY | string | No | Finance | the tag value of the resource. The value range of n is 1~20. Once the value is passed in, it can be an empty string. it can be up to 128 characters in length. it cannot start with aliyun or acs: and cannot contain http:// or https://. |
ResourceType | BODY | string | No | snapshot | resource type. Value range: disk instance image securitygroup snapshot The above values are all lowercase. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | region ID. You can call the DescribeRegions to view the latest Alibaba Cloud region list. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}
title: DescribeTaskAttribute
sidebar_position: 3
DescribeTaskAttribute
Description
call DescribeTaskAttribute to query details of asynchronous tasks.
Request Method
POST
Request Path
/apsara/route/Ecs/DescribeTaskAttribute
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
TaskId | BODY | string | Yes | t-taskid | task ID. You can call the DescribeTasks to view the task ID. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | region ID. You can call the DescribeRegions to view the latest Alibaba Cloud region list. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}